<form autocomplete="off" class="layui-form layui-box modal-form-box" action="{:request()->url()}" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">名称（标题）：</label>
        <div class="layui-input-block">
            <input autofocus name="title" value='{$vo.title|default=""}' required title="请输入" placeholder="请输入" class="layui-input">
        </div>
    </div>

    {if isset($vo['id'])}
    <input type='hidden' value='{$vo.id}' name='id'/>
    {else}
    <input type="hidden" value="{:date('Y-m-d H:i:s')}" name="create_at">
    {/if}

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
